package top.glkj.hms.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import top.glkj.hms.entity.Role;

/**
 * @author : xgl
 * @version : 0.0.1
 * @date :2020/11/13 0:27
 */
public interface RoleDao extends JpaRepository<Role, Long>, JpaSpecificationExecutor<Role> {
    /**
     * 获取角色根据角色名称
     * @param roleName 角色名称
     * @return 角色
     */
    public Role findRoleByRoleName(String roleName);
}